<?php
declare (strict_types=1);

namespace app\common\model;

class SummaryUser extends Base
{
    protected function user(): object
    {
        return $this->hasOne(User::class, 'id', 'uid')
            ->field('id,code,nickname,mobile,photo');
    }
}